package org.cloud.mall.project.service.impl;

import org.cloud.mall.project.domain.SlRskCheckFormGoodsShangjian;
import org.cloud.mall.project.mapper.SlRskCheckFormGoodsShangjianMapper;
import org.cloud.mall.project.service.ISlRskCheckFormGoodsShangjianService;
import org.cloud.mall.common.utils.DateUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SlRskCheckFormGoodsShangjianServiceImpl implements ISlRskCheckFormGoodsShangjianService {

    private static final Logger log = LoggerFactory.getLogger(SlRskCheckFormGoodsShangjianServiceImpl.class);

    @Autowired
    private SlRskCheckFormGoodsShangjianMapper slRskCheckFormGoodsShangjianMapper;

    /**
     * 查询查验结果反馈
     *
     * @param id 查验结果反馈主键
     * @return 查验结果反馈
     */
    @Override
    public SlRskCheckFormGoodsShangjian selectSlRskCheckFormGoodsShangjianById(String id)
    {
        return slRskCheckFormGoodsShangjianMapper.selectSlRskCheckFormGoodsShangjianById(id);
    }

    /**
     * 查询查验结果反馈列表
     *
     * @param slRskCheckFormGoodsShangjian 查验结果反馈
     * @return 查验结果反馈
     */
    @Override
    public List<SlRskCheckFormGoodsShangjian> selectSlRskCheckFormGoodsShangjianList(SlRskCheckFormGoodsShangjian slRskCheckFormGoodsShangjian)
    {
        return slRskCheckFormGoodsShangjianMapper.selectSlRskCheckFormGoodsShangjianList(slRskCheckFormGoodsShangjian);
    }

    /**
     * 新增查验结果反馈
     *
     * @param slRskCheckFormGoodsShangjian 查验结果反馈
     * @return 结果
     */
    @Override
    public int insertSlRskCheckFormGoodsShangjian(SlRskCheckFormGoodsShangjian slRskCheckFormGoodsShangjian)
    {
        slRskCheckFormGoodsShangjian.setCreateTime(DateUtils.getNowDate());
        return slRskCheckFormGoodsShangjianMapper.insertSlRskCheckFormGoodsShangjian(slRskCheckFormGoodsShangjian);
    }

    /**
     * 修改查验结果反馈
     *
     * @param slRskCheckFormGoodsShangjian 查验结果反馈
     * @return 结果
     */
    @Override
    public int updateSlRskCheckFormGoodsShangjian(SlRskCheckFormGoodsShangjian slRskCheckFormGoodsShangjian)
    {
        return slRskCheckFormGoodsShangjianMapper.updateSlRskCheckFormGoodsShangjian(slRskCheckFormGoodsShangjian);
    }

    /**
     * 批量删除查验结果反馈
     *
     * @param ids 需要删除的查验结果反馈主键
     * @return 结果
     */
    @Override
    public int deleteSlRskCheckFormGoodsShangjianByIds(String[] ids)
    {
        return slRskCheckFormGoodsShangjianMapper.deleteSlRskCheckFormGoodsShangjianByIds(ids);
    }

    /**
     * 删除查验结果反馈信息
     *
     * @param id 查验结果反馈主键
     * @return 结果
     */
    @Override
    public int deleteSlRskCheckFormGoodsShangjianById(String id)
    {
        return slRskCheckFormGoodsShangjianMapper.deleteSlRskCheckFormGoodsShangjianById(id);
    }

}
